package vy.org.app.page.employee;

import org.vy.dal.dao.VyEmployeeDO;
import vy.org.util.DateUtil;

public class EmployeeDOAssembler {

	private static EmployeeDOAssembler employeeDOAssembler = new EmployeeDOAssembler();

	public static EmployeeDOAssembler getAssembler() {
		return employeeDOAssembler;
	}

	public static VyEmployeeDO createEmployeeDO(EmployeeForm employeeForm) {
		VyEmployeeDO employeeDO = new VyEmployeeDO();

		employeeDO.setEmployeeId(employeeForm
				.getResponsibilityid());
		employeeDO.setVyId(employeeForm.getVyId());
		employeeDO.setFullName(employeeForm.getFullName());
		employeeDO.setWorkScope(employeeForm.getWorkScope());
		employeeDO.setWorkLocation(employeeForm.getWorkCitycode());
		employeeDO.setSantSamajId(employeeForm.getSantSamajId());
		employeeDO.setAshramId(employeeForm.getAshramid());
		employeeDO.setDesignationId(employeeForm.getDesignationid());
		employeeDO.setRolesResponsibility(employeeForm.getRoles());
		employeeDO.setStartDate(employeeForm.getStartDate());
		employeeDO.setEndDate(employeeForm.getEndDate());
		employeeDO.setLastUpdatedBy(employeeForm.getLastUpdatedBy());
//		employeeDO.setLastUpdatedOn(DateUtil.getCurrentDate().toString());

		return employeeDO;

	}
}
